<script setup lang="ts">

import { useAttrs, useSlots } from "vue";

let attrs = useAttrs()
let slots = useSlots()
console.log('attrs', { ...attrs })
console.log('slots', { ...slots })

</script>

<template>
    <slot name="test"></slot>
</template>